/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cardgame.game.monsters;

import cardgame.game.*;
import cardgame.game.events.*;

/**
 *
 * @author Carl
 */
public class Annie extends MonsterCard{

    public Annie(){
        description = new Description("Annie", "Have you seen my bear Tibbers?");
        manaTypes = new Mana[]{Mana.RED};
        summonCost = new Cost(new ManaAmount(Mana.RED, 2), 0, false);
        attackDamage = 0;
        setLifepoints(2);
        setSpells(new Spell[]{new Spell(){{
                description = new Description("Summon Tibbers");
                cost = new Cost(new ManaAmount(Mana.RED, 3), 0, false);
            }

            @Override
            public void cast(Game game, SpellParameter[] parameters){
                if(!caster.getOwner().getMonsters().contains(tibbers)){
                    game.triggerEvent(new SummonMonsterEvent(caster.getOwner(), tibbers));
                }
            }
        }});
    }
    private Tibbers tibbers = new Tibbers();
}
